package com.htjc.integral.conversion.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.htjc.integral.interaction.outer.service.IBuyElecRedPacketForExtSysService;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiaoze
 * @date 2018/6/7
 */
@RestController
public class DemoConsumerController {

    @Reference(version = "${demo.service.version}",
            application = "${dubbo.application.id}"
            )
    private IBuyElecRedPacketForExtSysService iBuyElecRedPacketForExtSysService;

    @RequestMapping("/noHello/{name}")
    public String noHello(@PathVariable("name") String name) {
    	System.out.println("你好！！！");
        return iBuyElecRedPacketForExtSysService.hero(name);
    }

}
